import { _getcode, _list } from '../../api/request';
import { observable, action, makeObservable } from 'mobx';
class App {
  constructor() {
    makeObservable(this);
  }
  @observable title = 'syk';
  @observable list = [];
  @action getcode = async () => {
    let res = await _getcode();
    console.log(res);
  };
  @action lists = async () => {
    let res = await _list();
    this.list = res.data.data;
    console.log(res.data.data);
  };
}
const app = new App();
export default app;
